Skip to content

chore: make just clean reclaim full build cache - #72

Merged
SimplicityGuy merged 1 commit into
mainfrom
chore/clean-recipe-reclaim-build-cache
Jun 19, 2026
Merged

chore: make just clean reclaim full build cache#72
SimplicityGuy merged 1 commit into
mainfrom
chore/clean-recipe-reclaim-build-cache

Conversation

@SimplicityGuy

Copy link
Copy Markdown
Owner

What

just clean now fully reclaims the regenerable build cache. The recipe already ran cargo clean and removed generated CSS, .sqlx/tmp, and the dev DB — but two large regenerable artifacts were left behind. This adds them to the rm -rf line.

Why

target/ alone was consuming ~51 GB, and just clean left behind:

Artifact Size Regenerated by
bin/tailwindcss ~76 MB just tailwind (re-downloads the standalone binary)
.playwright-mcp/ ~7.4 MB recreated on the next Playwright MCP run

target/ (~51 GB) was already handled by cargo clean, which covers the sole root crate (no workspace / extra manifests).

Scope / safety

  • Recipe stays idempotentcargo clean + rm -rf guards don't fail on missing paths.
  • Only safely regenerable output is touched. Untouched: source, migrations/, .planning/, backups/ (intentional pre-update snapshots), and .tmp/ (ad-hoc scratch).
  • Dev DB (cronduit.dev.db) deletion is unchanged from prior behavior.

Verification

  • just clean → exit 0, idempotent (clean ran with target/ already absent without error); all listed paths confirmed gone.
  • just build from a cold target/ → exit 0, target/debug/cronduit binary produced, target/ regenerated cleanly.

🤖 Generated with Claude Code

https://claude.ai/code/session_01VJ7bEMZp8H4Ef8ejg55HeX

The clean recipe ran `cargo clean` + removed generated CSS and the dev
DB, but left two large regenerable artifacts behind:

- `bin/tailwindcss` (~76 MB) — re-downloaded by `just tailwind`
- `.playwright-mcp/` (~7.4 MB) — recreated on the next MCP run

Add both to the `rm -rf` line so `just clean` fully reclaims the build
cache (target/ ~51 GB via cargo clean, plus the above). Recipe stays
idempotent; only safely regenerable output is touched (source,
migrations, .planning, backups/, and .tmp/ are untouched).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VJ7bEMZp8H4Ef8ejg55HeX
@SimplicityGuy
SimplicityGuy merged commit 7d3537d into main Jun 19, 2026
10 checks passed
@SimplicityGuy
SimplicityGuy deleted the chore/clean-recipe-reclaim-build-cache branch June 19, 2026 04:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant